package com.tcm.smarthealth.service;

import com.tcm.smarthealth.dto.ImageRecordResponse;
import com.tcm.smarthealth.enums.ImageAnalysisType;
import org.springframework.core.io.Resource;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface ImageService {

    ImageRecordResponse uploadAndAnalyze(MultipartFile file, ImageAnalysisType analysisType, Long userId) throws IOException;

    List<ImageRecordResponse> listRecords(Long userId, ImageAnalysisType analysisType, int page, int size);

    ImageRecordResponse getRecord(String recordId, Long userId);

    Resource loadPreview(String recordId, Long userId);
}

